<script setup>
import { onMounted } from 'vue';

onMounted(() => {
  setTimeout(() => {
    window.location.href = 'https://gitee.com/lol1296/smark';
  }, 1000);
});
</script>

<template>
  <div class="loading">
    <p>正在跳转到仓库页面...</p>
    <div class="spinner"></div>
  </div>
</template>

<style scoped>
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f5f5f5;
}

.loading p {
  margin-bottom: 20px;
  font-size: 18px;
  color: #333;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #333;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
</style>